package org.huang.sample12.model;


import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @描述：
 * @作者: Mr.huang
 * @创建时间: 2017/8/31 16:13
 * @版本: 1.0
 */

public class Person {

    @NotNull(message="ID不能为空")
    private Integer id;
    @NotBlank(message="name不能为空")
    private String name;
    @NotNull(message="date不能为空")
    private Date date;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }


    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                '}';
    }
}
